package com.baidu.push.example;

import com.baidu.android.pushservice.PushConstants;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import edu.hnu.cloudflight.android.R;

public class CustomActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.custom_activity);
		TextView titleView = (TextView) this.findViewById(R.id.title);
		TextView contentView = (TextView) this.findViewById(R.id.content);
		Intent intent = getIntent();
        String title = intent.getStringExtra(PushConstants.EXTRA_NOTIFICATION_TITLE);
        String content = intent.getStringExtra(PushConstants.EXTRA_NOTIFICATION_CONTENT);
        
        titleView.setText(title);
        contentView.setText(content);
	}
}
